package com.springaop.test;

import com.springaop.service.Service;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        Service serviceProxy = applicationContext.getBean("serviceProxy", Service.class);
        serviceProxy.addOne();
        serviceProxy.deleteOne();
    }
}
